package week2;

import java.util.Scanner;

public class PP0212{
  public static void main(String[] args){
    float a,b,c;
    Scanner scan = new Scanner(System.in);
    System.out.print("输入边长: ");
    a = scan.nextFloat();
    b = a * 4;
    c = a * a;
    System.out.println("周长="+ b + "面积=" + c);
  }
}
